package com.rui.patterns.prototype.demo;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Realizetype
 * @createTime : [2022/2/20 17:28]
 * @description : [描述该类的功能]
 */

public class Realizetype implements Cloneable {

    public Realizetype() {
        System.out.println("具体原型对象被创建!");
    }

    @Override
    public Realizetype clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功!");
        return (Realizetype) super.clone();
    }
}
